<?php
namespace App\Http\Controllers;
/**
 * 
 * 支付方式控制器
 * 
 * @author maqu
 *
 */
use Illuminate\Support\Facades\Auth;
class PaymentController extends BaseController {

    /**
     * 
     * 支付方式一览
     * 
     * input:
     *  store_id
     */
    public function lists()
    {    
        $store_id =Input::get('store_id',0);
        if(!$store_id){
            return $this->failure('参数不对');
        }
        
        $query =DB::table('payment')
            ->where('store_id',$store_id)->where('enabled',1)
            ->orderBy('sort_order','asc')->get();
            
        return $this->success($query);
    }

}
